import request from '@/utils/request'

// 根据字典类型数组获取字典数据
export function getListByDictTypeList(params) {
    return request({
        url: '/mogu-admin/sysDictData/getListByDictTypeList',
        method: 'post',
        data: params
    })
}

export function getListByDictType(params) {
    return request({
        url: '/mogu-admin/sysDictData/getListByDictType',
        method: 'post',
        params
    })
}


export function addSysDictData(params) {
    return request({
        url: '/mogu-admin/sysDictData/add',
        method: 'post',
        data: params
    })
}

export function editSysDictData(params) {
    return request({
        url: '/mogu-admin/sysDictData/edit',
        method: 'post',
        data: params
    })
}

export function deleteBatchSysDictData(params) {
    return request({
        url: '/mogu-admin/sysDictData/deleteBatch',
        method: 'post',
        data: params
    })
}

export function getSysDictDataList(params) {
    return request({
        url: '/mogu-admin/sysDictData/getList',
        method: 'post',
        data: params
    })
}